<div id="removeFromFile">
<strong>系统发现项目删除了以下控制器方法，</strong><input id="bt_removefromdb" type="button" value="-> 点击这里从数据库中删除下列方法">
<ul>
	{{ foreach from=$removeFromFile item=oneCtrl }}
	<li>
		<h1>{{ $oneCtrl.permission_group_name }}</h1>
		
		{{ foreach from=$oneCtrl.permissions item=permission }}
		
			<h2>&nbsp;&nbsp;\--{{ $permission.pername }}</h2>
		
		{{ /foreach }}
	</li>	
	{{ /foreach }}
</ul>
</div>
<div id="newInFile">
<strong>系统发现项目创建了新的控制器方法，</strong><input id="bt_savetodb" type="button" value="-> 点击这里添加下列方法到数据库">
<ul>
	{{ foreach from=$newInFile item=oneCtrl }}
	<li>
		<h1>{{ $oneCtrl.permission_group_name }}</h1>
		
		{{ foreach from=$oneCtrl.permissions item=permission }}
		
			<h2>&nbsp;&nbsp;\-{{ $permission.pername }}</h2>
		
		{{ /foreach }}
	</li>	
	{{ /foreach }}
</ul>
</div>


<div id="permissionList">
<strong>权限列表</strong>
{{ foreach from=$dbPermissionsList item=onefile }}

	<h1 class="controller" group_id="{{ $onefile.permission_group_id }}" need_login="{{ $onefile.need_login }}">
		<span class="group_aliasname">{{ $onefile.aliasname }}</span>
		<span class="groupname">({{ $onefile.permission_group_name }})</span>
		<span class="tip"></span>
		<span class="editbox"></span>
	</h1>
	
	{{ foreach from=$onefile.permissions item=permission }}
	
		<h2 class="action" permission_id="{{ $permission.permission_id }}">&nbsp;&nbsp;\--
			<span class="permission_aliasname">{{ $permission.aliasname }}</span>
			<span class="pername">({{ $permission.pername }})</span>
			<span class="tip"></span>
			<span class="editbox"></span>
		</h2>
	
	{{ /foreach }}
	
{{ /foreach }}
</div>


<div id="div_update" class="hideme">
<form id="updategroup" action="{{ url controller="admin_permissions" action="groupaliasupdate" }}" method="POST">
	<input id="permission_group_id" name="permission_group_id" type="hidden">
	<label>别名：<input name="aliasname" id="group_aliasname" type="text" size="40" /></label>
	<label><input class="need_login" name="need_login" type="radio" value="0" />公共</label> / 
	<label><input class="need_login" name="need_login" type="radio" value="1" />私有</label>
	<input type="submit" value="更新" />
	<input type='button' value='取消' class='removeModifyForm' />
</form>
<form id="updatepermission" action="{{ url controller="admin_permissions" action="permissionaliasupdate" }}" method="POST">
	<input id="permission_id" name="permission_id" type="hidden">
	<label>别名：<input name="aliasname" id="permission_aliasname" type="text" size="50" /></label>
	<input type="submit" value="更新" />
	<input type='button' value='取消' class='removeModifyForm' />
</form>
</div>

